from couchdbkit import *
class Team(Document):
    teamId=IntegerProperty()
    teamName=StringProperty()
    country=StringProperty()
    players=SchemaListProperty(Player)

class User(Document):
    userid=IntegerProperty()
    nickname=StringProperty()
    Name = StringProperty()
    Surname = StringProperty()
    password = StringProperty()
    countrId=IntegerProperty()
    teamId=IntegerProperty()

class Player(Document):
    playerId=IntegerProperty()
    name=StringProperty()
    Surname=StringProperty()
    born=DateProperty()
    character=StringProperty()

class League:
    leagueId=IntegerProperty()
    name=StringProperty()
    countryId=StringProperty()
    level=IntegerProperty()

class Characteristic:
    power=IntegerProperty()
    kick=IntegerProperty()
    pas=IntegerProperty()
    deff=IntegerProperty()
    goalkiper=IntegerProperty()
